{# Overseer > Database > Tables (overseer_database_browser.tables), the whole width the table's own, filling the page below its header: the table picked, opening to the schema's tables to pick another (``pick_menu``: its box narrows them as you type), the part owning it (``owner_link``: a service opens on the map, a component its page), its tabs: Rows (``_rows.html``), Schema (its CREATE statement) and Relationships (as Overseer's map draws, ``_overview_map.html``: who points at it, it, what it points at), then the way to query it (a new tab on Query). A table or a tab swaps it all. #} {% from "components/macros/layout.html" import badge, code_block, menu_heading, pick_item, pick_menu, tab_bar, tab_item %} {% from "components/macros/feedback.html" import empty_state %}
{% call tab_bar(table_name) %}
{% call pick_menu(table_name, "database-tables-list", "Find a table", attrs="data-tables-list") %} {{ menu_heading(tables_schema, tag="p", attrs="data-schema", count=tables_list|length) }} {% for table in tables_list %} {% set picks %}{{ hx_replace(table.url, "#database-table") }}{% if table.name == table_name %} aria-current="page"{% endif %}{% endset %} {% call pick_item(table.name, url=table.url, attrs=picks, mono=True) %}{% if table.trend %}{{ table.trend }}{% endif %}{% if table.rows is not none %}{{ table.rows }}{% endif %}{% endcall %} {% endfor %} {% endcall %}
{% if table_owner %}{% set owned_by = badge(table_owner.name, "accent") %} {% if table_owner.url %}{{ owned_by }}{% else %}{{ owned_by }}{% endif %} {% endif %} {% for tab in table_tabs %}{{ tab_item(tab.label, tab.key == table_tab, tab.url, hx_replace(tab.url, "#database-table")) }}{% endfor %} Query this table {% endcall %} {% if table_tab == "schema" %}
{% if table_sql %}{{ code_block(table_sql, lang="sql") }}{% else %}{{ empty_state("No schema read", "The health check has not listed this table's columns.") }}{% endif %}
{% elif table_unread %}

Not one of the app's models, which its rows and keys are read through.

{% elif table_tab == "relationships" %}
{% if table_alone %}

No key points out of it or into it.

{% endif %} {% include "pages/overseer/_overview_map.html" %}
{% else %} {% include "pages/overseer/database/_rows.html" %} {% endif %}